package com.mx.project.dao;

import com.mx.project.pojo.User;
import com.mx.project.vo.UserInfo;
import org.apache.ibatis.annotations.Param;
public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUserInfo(User user);

    User selectUserByUsername(String username);

    User selectUserByEmail(String email);

    User selectUserByPhone(String phone);

    User selectUserByUP(@Param("username") String username,@Param("password") String password);

    UserInfo selectUserInfoByUid(@Param("uid") Integer uid);
}